package wxdb.symbol;

public class Symbol {
	private String name;
	private Symbol(String s){
		name = s;
	}
	
	private static  java.util.Dictionary dict = new java.util.Hashtable();
	
	public String toString(){
		return name;
	}
	
	public static Symbol symbol(String str){
		String k = str.intern();
		Symbol v = (Symbol)dict.get(k);
		if(v == null){
			v = new Symbol(k);
			dict.put(k, v);
		}
		return v;
	}
	
}
